home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 September / CHIP_CD_2004-09.iso / test / bochs / files / Bochs-2.1.1.exe / / keymaps / sdl-pc-us.map < prev    next >
Text File  |  2004-02-08  |  13KB  |  212 lines

  1. # Bochs Keymap file
  2. # $Id: sdl-pc-us.map,v 1.2 2002/10/24 21:06:55 bdenney Exp $
  3. # Target: PC(x86) keyboard, US keymap, SDL gui
  4. # Author: Bryce Denney
  5. #
  6. # The keymap file describes the layout of a keyboard, and how it translates
  7. # into Bochs key codes.
  8. #
  9. # Format:
  10. #  BX_Keysym                ASCII_equivalent      Host_key_name
  11. #
  12. # Or, for keys that require modifiers:
  13. #  BX_Keysym+BX_Modifier    ASCII_equivalent      Host_key_name
  14. #
  15. # BX_Keysym and BX_Modifier must be present in the bx_key_symbol[] list in
  16. # gui/keymap.cc.  The BX_Modifier is usually a shift key press, but it
  17. # could be any key.  Presently a maximum of one modifier is supported, but this
  18. # could be changed in keymap.h (structure def has only one slot for modifier),
  19. # keymap.cc (parsing code), and iodev/keyboard.cc (simulate keypresses for >1
  20. # modifier).
  21. #
  22. # The ASCII_equivalent must be either apostrophe + one character + apostrophe,
  23. # or one of these keywords: space, return, tab, backslash, apostrophe, none.
  24. # This format is designed to look like a char constant in C, but it's a very
  25. # simple parser.  There's no concept of backslash being an escape char.  The
  26. # backslash and apostrophe entries are provided for aesthetic purposes only: no
  27. # C++ programmer wants to see '\' or '''. The parser doesn't care, but they are
  28. # ugly.
  29. #
  30. # Host_key_name is the name of the key combination according to the gui library
  31. # (X windows, SDL, etc).  Each GUI module must provide a function that converts
  32. # these host key names into numbers.  A pointer to the conversion function is
  33. # passed to loadKeymap(), and it is used when parsing the keymap file.  As the
  34. # keymap file is parsed, the conversion function is called for each host key
  35. # name, to convert it into a number.  Only the number is stored.  If the host
  36. # key name is not found, the conversion function returns BX_KEYMAP_UNKNOWN, and
  37. # the keymap code will panic, like this: 
  38. #
  39. #    [KMAP ] line 51: unknown host key name 'SDLK_PAREN_RIGHT' 
  40. #
  41. # If this happens, you must edit the keymap file, and either correct the host
  42. # key name or comment out that line.
  43. #
  44.  
  45. BX_KEY_0                                      '0'        SDLK_0
  46. BX_KEY_0+BX_KEY_SHIFT_L                       ')'        SDLK_RIGHTPAREN
  47. BX_KEY_1                                      '1'        SDLK_1
  48. BX_KEY_1+BX_KEY_SHIFT_L                       '!'        SDLK_EXCLAIM
  49. BX_KEY_2                                      '2'        SDLK_2
  50. BX_KEY_2+BX_KEY_SHIFT_L                       '@'        SDLK_AT
  51. BX_KEY_3                                      '3'        SDLK_3
  52. BX_KEY_3+BX_KEY_SHIFT_L                       '#'        SDLK_HASH
  53. BX_KEY_4                                      '4'        SDLK_4
  54. BX_KEY_4+BX_KEY_SHIFT_L                       '$'        SDLK_DOLLAR
  55. BX_KEY_5                                      '5'        SDLK_5
  56. #BX_KEY_5+BX_KEY_SHIFT_L                       '%'        SDLK_PERCENT
  57. BX_KEY_6                                      '6'        SDLK_6
  58. BX_KEY_6+BX_KEY_SHIFT_L                       '^'        SDLK_CARET
  59. BX_KEY_7                                      '7'        SDLK_7
  60. BX_KEY_7+BX_KEY_SHIFT_L                       '&'        SDLK_AMPERSAND
  61. BX_KEY_8                                      '8'        SDLK_8
  62. BX_KEY_8+BX_KEY_SHIFT_L                       '*'        SDLK_ASTERISK
  63. BX_KEY_9                                      '9'        SDLK_9
  64. BX_KEY_9+BX_KEY_SHIFT_L                       '('        SDLK_LEFTPAREN
  65. BX_KEY_A+BX_KEY_SHIFT_L                       'A'        SDLK_a
  66. BX_KEY_A                                      'a'        SDLK_a
  67. BX_KEY_B+BX_KEY_SHIFT_L                       'B'        SDLK_b
  68. BX_KEY_B                                      'b'        SDLK_b
  69. BX_KEY_C+BX_KEY_SHIFT_L                       'C'        SDLK_c
  70. BX_KEY_C                                      'c'        SDLK_c
  71. BX_KEY_D+BX_KEY_SHIFT_L                       'D'        SDLK_d
  72. BX_KEY_D                                      'd'        SDLK_d
  73. BX_KEY_E+BX_KEY_SHIFT_L                       'E'        SDLK_e
  74. BX_KEY_E                                      'e'        SDLK_e
  75. BX_KEY_F+BX_KEY_SHIFT_L                       'F'        SDLK_f
  76. BX_KEY_F                                      'f'        SDLK_f
  77. BX_KEY_G+BX_KEY_SHIFT_L                       'G'        SDLK_g
  78. BX_KEY_G                                      'g'        SDLK_g
  79. BX_KEY_H+BX_KEY_SHIFT_L                       'H'        SDLK_h
  80. BX_KEY_H                                      'h'        SDLK_h
  81. BX_KEY_I+BX_KEY_SHIFT_L                       'I'        SDLK_i
  82. BX_KEY_I                                      'i'        SDLK_i
  83. BX_KEY_J+BX_KEY_SHIFT_L                       'J'        SDLK_j
  84. BX_KEY_J                                      'j'        SDLK_j
  85. BX_KEY_K+BX_KEY_SHIFT_L                       'K'        SDLK_k
  86. BX_KEY_K                                      'k'        SDLK_k
  87. BX_KEY_L+BX_KEY_SHIFT_L                       'L'        SDLK_l
  88. BX_KEY_L                                      'l'        SDLK_l
  89. BX_KEY_M+BX_KEY_SHIFT_L                       'M'        SDLK_m
  90. BX_KEY_M                                      'm'        SDLK_m
  91. BX_KEY_N+BX_KEY_SHIFT_L                       'N'        SDLK_n
  92. BX_KEY_N                                      'n'        SDLK_n
  93. BX_KEY_O+BX_KEY_SHIFT_L                       'O'        SDLK_o
  94. BX_KEY_O                                      'o'        SDLK_o
  95. BX_KEY_P+BX_KEY_SHIFT_L                       'P'        SDLK_p
  96. BX_KEY_P                                      'p'        SDLK_p
  97. BX_KEY_Q+BX_KEY_SHIFT_L                       'Q'        SDLK_q
  98. BX_KEY_Q                                      'q'        SDLK_q
  99. BX_KEY_R+BX_KEY_SHIFT_L                       'R'        SDLK_r
  100. BX_KEY_R                                      'r'        SDLK_r
  101. BX_KEY_S+BX_KEY_SHIFT_L                       'S'        SDLK_s
  102. BX_KEY_S                                      's'        SDLK_s
  103. BX_KEY_T+BX_KEY_SHIFT_L                       'T'        SDLK_t
  104. BX_KEY_T                                      't'        SDLK_t
  105. BX_KEY_U+BX_KEY_SHIFT_L                       'U'        SDLK_u
  106. BX_KEY_U                                      'u'        SDLK_u
  107. BX_KEY_V+BX_KEY_SHIFT_L                       'V'        SDLK_v
  108. BX_KEY_V                                      'v'        SDLK_v
  109. BX_KEY_W+BX_KEY_SHIFT_L                       'W'        SDLK_w
  110. BX_KEY_W                                      'w'        SDLK_w
  111. BX_KEY_X+BX_KEY_SHIFT_L                       'X'        SDLK_x
  112. BX_KEY_X                                      'x'        SDLK_x
  113. BX_KEY_Y+BX_KEY_SHIFT_L                       'Y'        SDLK_y
  114. BX_KEY_Y                                      'y'        SDLK_y
  115. BX_KEY_Z+BX_KEY_SHIFT_L                       'Z'        SDLK_z
  116. BX_KEY_Z                                      'z'        SDLK_z
  117. BX_KEY_F1                                     none       SDLK_F1
  118. BX_KEY_F2                                     none       SDLK_F2
  119. BX_KEY_F3                                     none       SDLK_F3
  120. BX_KEY_F4                                     none       SDLK_F4
  121. BX_KEY_F5                                     none       SDLK_F5
  122. BX_KEY_F6                                     none       SDLK_F6
  123. BX_KEY_F7                                     none       SDLK_F7
  124. BX_KEY_F8                                     none       SDLK_F8
  125. BX_KEY_F9                                     none       SDLK_F9
  126. BX_KEY_F10                                    none       SDLK_F10
  127. BX_KEY_F11                                    none       SDLK_F11
  128. BX_KEY_F12                                    none       SDLK_F12
  129. BX_KEY_ALT_L                                  none       SDLK_LALT
  130. BX_KEY_ALT_L                                  none       SDLK_LMETA
  131. BX_KEY_ALT_R                                  none       SDLK_MODE
  132. #BX_KEY_ALT_R                                  none       SDLK_Multi_key
  133. BX_KEY_BACKSLASH                              backslash  SDLK_BACKSLASH
  134. #BX_KEY_BACKSLASH+BX_KEY_SHIFT_L               '|'        SDLK_bar
  135. BX_KEY_BACKSPACE                              none       SDLK_BACKSPACE
  136. BX_KEY_CAPS_LOCK                              none       SDLK_CAPSLOCK
  137. BX_KEY_COMMA                                  ','        SDLK_COMMA
  138. BX_KEY_COMMA+BX_KEY_SHIFT_L                   '<'        SDLK_LESS
  139. BX_KEY_CTRL_L                                 none       SDLK_LCTRL
  140. BX_KEY_CTRL_R                                 none       SDLK_RCTRL
  141. BX_KEY_DELETE                                 none       SDLK_DELETE
  142. BX_KEY_DOWN                                   none       SDLK_DOWN
  143. BX_KEY_END                                    none       SDLK_END
  144. BX_KEY_ENTER                                  return     SDLK_RETURN
  145. BX_KEY_EQUALS                                 '='        SDLK_EQUALS
  146. BX_KEY_EQUALS+BX_KEY_SHIFT_L                  '+'        SDLK_PLUS
  147. BX_KEY_ESC                                    none       SDLK_ESCAPE
  148. #BX_KEY_GRAVE+BX_KEY_SHIFT_L                   '~'        SDLK_asciitilde
  149. BX_KEY_GRAVE                                  '`'        SDLK_BACKQUOTE
  150. BX_KEY_HOME                                   none       SDLK_HOME
  151. BX_KEY_INSERT                                 none       SDLK_INSERT
  152. BX_KEY_KP_5                                   none       SDLK_KP5
  153. #BX_KEY_KP_5                                   none       SDLK_KP_BEGIN
  154. BX_KEY_KP_ADD                                 none       SDLK_KP_PLUS
  155. BX_KEY_KP_DELETE                              none       SDLK_KP_PERIOD
  156. #BX_KEY_KP_DELETE                              none       SDLK_KP_DELETE
  157. BX_KEY_KP_DIVIDE                              none       SDLK_KP_DIVIDE
  158. BX_KEY_KP_DOWN                                none       SDLK_KP2
  159. #BX_KEY_KP_DOWN                                none       SDLK_KP_DOWN
  160. BX_KEY_KP_END                                 none       SDLK_KP1
  161. #BX_KEY_KP_END                                 none       SDLK_KP_END
  162. BX_KEY_KP_ENTER                               none       SDLK_KP_ENTER
  163. BX_KEY_KP_HOME                                none       SDLK_KP7
  164. #BX_KEY_KP_HOME                                none       SDLK_KP_HOME
  165. BX_KEY_KP_INSERT                              none       SDLK_KP0
  166. #BX_KEY_KP_INSERT                              none       SDLK_KP_INSERT
  167. BX_KEY_KP_LEFT                                none       SDLK_KP4
  168. #BX_KEY_KP_LEFT                                none       SDLK_KP_LEFT
  169. BX_KEY_KP_MULTIPLY                            none       SDLK_KP_MULTIPLY
  170. BX_KEY_KP_PAGE_DOWN                           none       SDLK_KP3
  171. #BX_KEY_KP_PAGE_DOWN                           none       SDLK_KP_PAGE_DOWN
  172. BX_KEY_KP_PAGE_UP                             none       SDLK_KP9
  173. #BX_KEY_KP_PAGE_UP                             none       SDLK_KP_PAGE_UP
  174. BX_KEY_KP_RIGHT                               none       SDLK_KP6
  175. #BX_KEY_KP_RIGHT                               none       SDLK_KP_Right
  176. BX_KEY_KP_SUBTRACT                            none       SDLK_KP_MINUS
  177. BX_KEY_KP_UP                                  none       SDLK_KP8
  178. #BX_KEY_KP_UP                                  none       SDLK_KP_Up
  179. BX_KEY_LEFT                                   none       SDLK_LEFT
  180. #BX_KEY_LEFT_BRACKET+BX_KEY_SHIFT_L            '{'        SDLK_BRACELEFT
  181. BX_KEY_LEFT_BRACKET                           '['        SDLK_LEFTBRACKET
  182. BX_KEY_MENU                                   none       SDLK_MENU
  183. BX_KEY_MINUS                                  '-'        SDLK_MINUS
  184. BX_KEY_MINUS+BX_KEY_SHIFT_L                   '_'        SDLK_UNDERSCORE
  185. BX_KEY_NUM_LOCK                               none       SDLK_NUMLOCK
  186. BX_KEY_PAGE_DOWN                              none       SDLK_PAGEDOWN
  187. BX_KEY_PAGE_UP                                none       SDLK_PAGEUP
  188. BX_KEY_PAUSE                                  none       SDLK_BREAK
  189. BX_KEY_PAUSE                                  none       SDLK_PAUSE
  190. BX_KEY_PERIOD+BX_KEY_SHIFT_L                  '>'        SDLK_GREATER
  191. BX_KEY_PERIOD                                 '.'        SDLK_PERIOD
  192. BX_KEY_PRINT                                  none       SDLK_PRINT
  193. BX_KEY_PRINT                                  none       SDLK_SYSREQ
  194. BX_KEY_RIGHT                                  none       SDLK_RIGHT
  195. #BX_KEY_RIGHT_BRACKET+BX_KEY_SHIFT_L           '}'        SDLK_BRACERIGHT
  196. BX_KEY_RIGHT_BRACKET                          ']'        SDLK_RIGHTBRACKET
  197. BX_KEY_SCRL_LOCK                              none       SDLK_SCROLLOCK
  198. BX_KEY_SEMICOLON+BX_KEY_SHIFT_L               ':'        SDLK_COLON
  199. BX_KEY_SEMICOLON                              ';'        SDLK_SEMICOLON
  200. BX_KEY_SHIFT_L                                none       SDLK_LSHIFT
  201. BX_KEY_SHIFT_R                                none       SDLK_RSHIFT
  202. BX_KEY_SINGLE_QUOTE                           apostrophe SDLK_QUOTE
  203. BX_KEY_SINGLE_QUOTE+BX_KEY_SHIFT_L            '"'        SDLK_QUOTEDBL
  204. BX_KEY_SLASH+BX_KEY_SHIFT_L                   '?'        SDLK_QUESTION
  205. BX_KEY_SLASH                                  '/'        SDLK_SLASH
  206. BX_KEY_SPACE                                  space      SDLK_SPACE
  207. #BX_KEY_TAB                                    none       SDLK_ISO_LEFT_TAB
  208. BX_KEY_TAB                                    tab        SDLK_TAB
  209. BX_KEY_UP                                     none       SDLK_UP
  210. BX_KEY_WIN_L                                  none       SDLK_LSUPER
  211. BX_KEY_WIN_R                                  none       SDLK_LSUPER
  212.